package com.tansun.easycare.rule.rulegroup.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则集规则关联关系Entity
 * @author lph
 * @version 2019-11-19
 */
public class RuleGroupRef extends RuleBaseEntity<RuleGroupRef> {
	
	private static final long serialVersionUID = 1L;
	private String ruleId;		// 指rule manageid
	private String manageId;		// rule_groupid
	private String projectCode;		// project_code
	private String enablestatus;		// enablestatus
	private String version;
	private int sort;//排序
	private String entryId;//条目id
    private String ruleweight;  //规则权重
    private String priority;  //优先级
	
	public RuleGroupRef() {
		super();
	}

	public RuleGroupRef(String id){
		super(id);
	}

	@Length(min=0, max=64, message="rule_id长度必须介于 0 和 64 之间")
	public String getRuleId() {
		return ruleId;
	}

	public void setRuleId(String ruleId) {
		this.ruleId = ruleId;
	}
	
	@Length(min=0, max=64, message="manage_id长度必须介于 0 和 64 之间")
	public String getManageId() {
		return manageId;
	}

	public void setManageId(String manageId) {
		this.manageId = manageId;
	}
	
	@Length(min=0, max=32, message="project_code长度必须介于 0 和 32 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	@Length(min=0, max=10, message="enablestatus长度必须介于 0 和 10 之间")
	public String getEnablestatus() {
		return enablestatus;
	}

	public void setEnablestatus(String enablestatus) {
		this.enablestatus = enablestatus;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getEntryId() {
		return entryId;
	}

	public void setEntryId(String entryId) {
		this.entryId = entryId;
	}

	public String getRuleweight() {
		return ruleweight;
	}

	public void setRuleweight(String ruleweight) {
		this.ruleweight = ruleweight;
	}

	public String getPriority() {
		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}
	
	
}